/* 在现有的btn样式后添加 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

/* 为hero-buttons容器添加样式 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 添加post-grid样式 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 改进精选帖子部分的样式 */
.featured-posts {
    margin-top: 2rem;
}

.featured-posts h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

/* 确保帖子卡片在网格中正确显示 */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.read-more {
    margin-top: auto;
    align-self: flex-start;
}

/* 为点赞数最高的帖子添加特殊标记 */
.post-card:first-child {
    border: 2px solid #4CAF50;
    position: relative;
}

.post-card:first-child::before {
    content: "热门";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}